package com.xh.one2one.lesson.service;



import com.xh.one2one.lesson.bean.dto.LessonSummaryDetailDto;
import com.xh.one2one.lesson.bean.dto.OneWrongStudentDto;
import com.xh.one2one.lesson.bean.request.LessonSummaryDetailsRequest;
import com.xh.one2one.lesson.model.LessonSummaryDetails;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 教学总结详情 服务类
 * </p>
 *
 * @author TW
 * @since 2021-05-06
 */
public interface ILessonSummaryDetailsService extends IBaseService<LessonSummaryDetails> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryLessonSummaryDetailsPage(XhPage page, LessonSummaryDetailsRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryLessonSummaryDetails(LessonSummaryDetailsRequest bean);

    List querySummaryQuestion(LessonSummaryDetailsRequest bean);

    List<LessonSummaryDetailDto> querySummaryDetailDtoQuestion(LessonSummaryDetailsRequest bean);

    public XhPage queryWrongQuestionPage(XhPage page, LessonSummaryDetailsRequest bean);

    public Integer queryWrongCount(LessonSummaryDetailsRequest bean);

    List<OneWrongStudentDto> queryWrongStudentGroupByLessonId(LessonSummaryDetailsRequest bean);

    void batchSave(List<LessonSummaryDetailsRequest> beans);

    List querySubjectForWrong(LessonSummaryDetailsRequest bean);

    Integer selectQuestionCountByType(String lessonThirdId,Integer type);
}
